#pragma once

#include <iostream>
#include <SFML/Graphics.hpp>

using namespace std;

class DamageNumber
{
public:
	DamageNumber(int value, sf::Vector2f startPos, sf::Font& font, bool isCritical = false);
	sf::Text text;
	sf::Vector2f position;
	sf::Vector2f velocity;
	float lifetime;
	float maxLifetime;
	bool critical;

	bool isExpired() const;
	void update(float deltaTime);
	void draw(sf::RenderTarget& target);
};

